from oosapy import OAuthAuthentication, API

# keys
CONSUMER_KEY = 'consumerKey'
CONSUMER_SECRET = 'consumerSecret'

ACCESS_TOKEN = 'accessToken'
TOKEN_SECRET = 'tokenSecret'

# initialization
oauth = OAuthAuthentication(CONSUMER_KEY, CONSUMER_SECRET,
                            ACCESS_TOKEN, TOKEN_SECRET)
api = API(oauth)

# change my nick
me = api.get_me()
me.nick = 'new nick'
me.update()
